<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/axios.js"></script>
    <script src="js/jquery.js"></script>
</head>
<body>

</body>

<script>
    var userList=new Array();
    userList.push({name:"张三",age:18});
    userList.push({name:"lis",age:21});

    axios({
        method:"get",
        // url:"${pageContext.request.contextPath}/user/q9.do",
        url:"localhost:8080/user/q9.do",
        data:JSON.stringify(userList),
        contentType: "application/json;charset=utf-8",
    });
</script>
</html>